﻿@model BootyBay.Models.ApplicationVersionInfo

@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Edit</h2>


@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    
    <div class="form-horizontal">
        <h4>ApplicationVersionInfo</h4>
        <hr />
        @Html.ValidationSummary(true)
        @Html.HiddenFor(model => model.Id)

        <div class="form-group">
            @Html.LabelFor(model => model.Id_ApplicationInfo, "Id_ApplicationInfo", new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.DropDownList("Id_ApplicationInfo", String.Empty)
                @Html.ValidationMessageFor(model => model.Id_ApplicationInfo)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.IdentityName, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.IdentityName)
                @Html.ValidationMessageFor(model => model.IdentityName)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.Version, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.Version)
                @Html.ValidationMessageFor(model => model.Version)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.Publisher, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.Publisher)
                @Html.ValidationMessageFor(model => model.Publisher)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.ProcessorArchitecture, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.ProcessorArchitecture)
                @Html.ValidationMessageFor(model => model.ProcessorArchitecture)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.DisplayName, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.DisplayName)
                @Html.ValidationMessageFor(model => model.DisplayName)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.PublisherDisplayName, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.PublisherDisplayName)
                @Html.ValidationMessageFor(model => model.PublisherDisplayName)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.Description, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.Description)
                @Html.ValidationMessageFor(model => model.Description)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.ChangeLog, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.ChangeLog)
                @Html.ValidationMessageFor(model => model.ChangeLog)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.IsInPublicWindowsStore, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.IsInPublicWindowsStore)
                @Html.ValidationMessageFor(model => model.IsInPublicWindowsStore)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.PackageLocationUrl, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.PackageLocationUrl)
                @Html.ValidationMessageFor(model => model.PackageLocationUrl)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.PackageCertLocationUrl, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.PackageCertLocationUrl)
                @Html.ValidationMessageFor(model => model.PackageCertLocationUrl)
            </div>
        </div>

        <div class="form-group">
            <div class="col-md-offset-2 col-md-10">
                <input type="submit" value="Save" class="btn btn-default" />
            </div>
        </div>
    </div>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
